<?
    function checkedfnu($str, $id)
     {
		if($_COOKIE[COOKIE_PRE.'uid']=='1'){
				return true;
		} else {
        	$strarray = explode(",", $str);
        	if ($strarray) {
            	foreach ($strarray as $v) {
                	if($id == $v){
                    	return true;
                	}
            	}
        	}
			return false;
		}
    }
?>
<div id="admins_body">


	<div id="adminsDiv">


		<div class="admins_left">


			<div class="admins_items">


				<div class="admins_items_title">管理首页</div>


				<div class="admins_items_menu" style="display:block">


					<div><a target="admins_frame" href="administrator-summary-index">管理摘要</a></div>


				</div>


			</div>
	<?php if(checkedfnu($this->memberArray[0]['menuflag'],'1')):?>

			<div class="admins_items">
				<div class="admins_items_title">会员订单</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-order-index">查看订单</a></div>
					<div><a target="admins_frame" href="administrator-order-presaleorder">预售订单</a></div>
				
				</div>
			</div>
	 <?php endif;?>
	 <?php if(checkedfnu($this->memberArray[0]['menuflag'],'15')):?>
	 <div class="admins_items">
				<div class="admins_items_title">积分设置</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-score-registerscore">注册积分</a></div>
					<div><a target="admins_frame" href="administrator-score-orderscore">购买积分转换比例</a></div>
					<div><a target="admins_frame" href="administrator-score-coupon">优惠码赠送美元</a></div>
					<div><a target="admins_frame" href="administrator-score-member">会员折扣</a></div>
					<div><a target="admins_frame" href="administrator-score-index">当前系统积分</a></div>
				</div>
			</div>
	 <?php endif;?>
	 <?php if(checkedfnu($this->memberArray[0]['menuflag'],'16')):?>
	 <div class="admins_items">
				<div class="admins_items_title">足球竞猜管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-match-index">竞猜列表</a></div>
					<div><a target="admins_frame" href="administrator-match-add">新增竞猜</a></div>
					<div><a target="admins_frame" href="administrator-match-club">俱乐部列表</a></div>
					<div><a target="admins_frame" href="administrator-match-mail">邮件设置</a></div>
<!--					<div><a target="admins_frame" href="administrator-match-clubmembers">俱乐部会员</a></div>-->
				</div>
			</div>
	<?php endif;?>
	 <?php if(checkedfnu($this->memberArray[0]['menuflag'],'13')):?>
			<div class="admins_items">
				<div class="admins_items_title">订单查询</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-order-search">订单查询</a></div>
				</div>
			</div>
	 <?php endif;?>
	 <?php if(checkedfnu($this->memberArray[0]['menuflag'],'2')):?>

			<div class="admins_items">
				<div class="admins_items_title">产品管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-product-index">全部产品</a></div>
					<div><a target="admins_frame" href="administrator-product-add">新增产品</a></div>
                    <div><a target="admins_frame" href="administrator-sponsors-index">赞助商LOGO</a></div>
                    <div><a target="admins_frame" href="administrator-brandlogo-index">工艺管理</a></div>
					<div><a target="admins_frame" href="administrator-badge">臂章管理</a></div>
					<div><a target="admins_frame" href="administrator-badge-add">臂章添加</a></div>
					<div><a target="admins_frame" href="administrator-badge-add">臂章添加</a></div>
					<div><a target="admins_frame" href="administrator-product-preproduct">预售产品</a></div>
				</div>
			</div>
	 <?php endif;?>
	 		<div class="admins_items">
				<div class="admins_items_title">优惠码管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-couponcode-index">全部优惠码</a></div>
					<div><a target="admins_frame" href="administrator-couponcode-add">新增惠码</a></div>
				</div>
			</div>
	 <?php if(checkedfnu($this->memberArray[0]['menuflag'],'3')):?>

			<div class="admins_items">
				<div class="admins_items_title">消息管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-pm-index?fromto=to">收件箱</a></div>
					<div><a target="admins_frame" href="administrator-pm-index?fromto=from">发件箱</a></div>
				</div>
			</div>
	 <?php endif;?>
	 <?php if(checkedfnu($this->memberArray[0]['menuflag'],'4')):?>

			<div class="admins_items">
				<div class="admins_items_title">帮助管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-help-all">所有帮助</a></div>
					<div><a target="admins_frame" href="administrator-help-add">发表帮助</a></div>
				</div>
			</div>
	  <?php endif;?>
	  <?php if(checkedfnu($this->memberArray[0]['menuflag'],'5')):?>

			<div class="admins_items">
				<div class="admins_items_title">会员管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-user-all">所有会员</a></div>
					<div><a target="admins_frame" href="administrator-user-reg">注册会员</a></div>
				</div>
			</div>
	  <?php endif;?>
	  <?php if(checkedfnu($this->memberArray[0]['menuflag'],'6')):?>

			<div class="admins_items">
				<div class="admins_items_title">分类管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-fenlei-index?type=product">产品分类</a></div>
					<div><a target="admins_frame" href="administrator-fenlei-index?type=help">帮助分类</a></div>
					<div><a target="admins_frame" href="administrator-location-index?type=location">地区分类</a></div>
				</div>
			</div>
	   <?php endif;?>
	   <?php if(checkedfnu($this->memberArray[0]['menuflag'],'7')):?>

             <div class="admins_items">
				<div class="admins_items_title">快递公司运费管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-yunfei-index">快递公司管理</a></div>
				</div>
			</div>
	   <?php endif;?>
	   <?php if(checkedfnu($this->memberArray[0]['menuflag'],'8')):?>

			<div class="admins_items">
				<div class="admins_items_title">公告管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-bulletin-index">所有公告</a></div>
					<div><a target="admins_frame" href="administrator-bulletin-add">新增公告</a></div>
				</div>
			</div>
	    <?php endif;?>	
	    <?php if(checkedfnu($this->memberArray[0]['menuflag'],'12')):?>
			<div class="admins_items">
				<div class="admins_items_title">博客管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-blog-index">所有博客</a></div>
					<div><a target="admins_frame" href="administrator-blog-add">新增博客</a></div>
				</div>
			</div>
		<?php endif;?>
		<?php if(checkedfnu($this->memberArray[0]['menuflag'],'9')):?>

            <div class="admins_items">
				<div class="admins_items_title">广告管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-ad-index">所有广告</a></div>
					<div><a target="admins_frame" href="administrator-ad-add">新增广告</a></div>
				</div>
			</div>
		<?php endif;?>
		<?php if(checkedfnu($this->memberArray[0]['menuflag'],'10')):?>

			<div class="admins_items">
				<div class="admins_items_title">物流管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-express-international">国外物流</a></div>
					<div><a target="admins_frame" href="administrator-express-addi">新增国外物流</a></div>
					<div><a target="admins_frame" href="administrator-express-company">物流公司</a></div>
					<div><a target="admins_frame" href="administrator-express-addcompany">新增物流公司</a></div>
				</div>
			</div>
		<?php endif;?>

		<?php if(checkedfnu($this->memberArray[0]['menuflag'],'11')):?>
			<div class="admins_items">
				<div class="admins_items_title">系统管理</div>
				<div class="admins_items_menu">
					<!--


					<div><a target="admins_frame" href="administrator-system-config">系统配置</a></div>


					<div><a target="admins_frame" href="administrator-system-mkindex">生成索引</a></div>


					<div><a target="admins_frame" href="administrator-system-cache">更新缓存</a></div>


					<div><a target="admins_frame" href="administrator-integration-index">积分管理</a></div>-->
					<div><a target="admins_frame" href="administrator-system-config">系统配置</a></div>
					<div><a target="admins_frame" href="administrator-system-moreconfig">详细配置</a></div>
					<div><a target="admins_frame" href="administrator-system-admail">广告邮件</a></div>
					<div><a target="admins_frame" href="administrator-system-cateconfig">栏目数量配置</a></div>
					<div><a target="admins_frame" href="administrator-system-nav">导航设置</a></div>
					<div><a target="admins_frame" href="administrator-images-edit">轮转图片</a></div>
                                        <div><a target="admins_frame" href="administrator-leftimgmenu-edit">左边图片连接</a></div>
					<div><a target="admins_frame" href="administrator-topimage-edit">首页循环图片</a></div>
                                        <div><a target="admins_frame" href="administrator-system-configorderemail">快递单号邮件设置</a></div>
                                        <div><a target="admins_frame" href="administrator-system-configpayemail">付款邮件设置</a></div>
                                        <div><a target="admins_frame" href="administrator-system-hotsearch">热门关键词设置</a></div>
                                        <div><a target="admins_frame" href="administrator-system-createindex">生成索引</a></div>
                                        <div><a target="admins_frame" href="administrator-zhuanti-index">专题管理</a></div>
                                        <div><a target="admins_frame" href="administrator-zhuanti-add">添加专题</a></div>
                                        <div><a target="admins_frame" href="administrator-system-attr">属性管理</a></div>
					<div><a target="admins_frame" href="administrator-system-link">友情链接管理</a></div>

				</div>
			</div>
			<?php endif;?>
			<?php if($_COOKIE[COOKIE_PRE.'uid']=='1'):?>
			<div class="admins_items">
				<div class="admins_items_title">管理员管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-user-adminlist">全部管理员</a></div>
                    <div><a target="admins_frame" href="administrator-user-addadmin">添加管理员</a></div>
				</div>
			</div>
			<?php endif;?>

<!--            <div class="admins_items">-->
<!---->

<!--				<div class="admins_items_title">球赛竞猜管理</div>-->
<!---->

<!--				<div class="admins_items_menu">-->
<!---->

<!--					<div><a target="admins_frame" href="administrator-games-index">球赛竞猜管理</a></div>-->
<!---->

<!--				</div>-->
<!---->

<!--			</div>-->


<!--			<div class="admins_items">-->
<!---->

<!--				<div class="admins_items_title">积分有奖问答管理</div>-->
<!---->

<!--				<div class="admins_items_menu">-->
<!---->

<!--					<div><a target="admins_frame" href="administrator-question-subject">题目管理</a></div>-->
<!---->

<!--                                        <div><a target="admins_frame" href="administrator-question-mybetc">下注管理</a></div>-->
<!---->

<!--				</div>-->
<!---->

<!--			</div>-->
		<div class="admins_items">
				<div class="admins_items_title">行为分析</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-log-product">购物车</a></div>
					<div><a target="admins_frame" href="administrator-log-order">下订单</a></div>
					<div><a target="admins_frame" href="administrator-paystatu">支付情况</a></div>
				</div>
			</div>
		<div class="admins_items">
				<div class="admins_items_title">网站统计</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-statistics-country">按国家及条件筛选</a></div>
					<div><a target="admins_frame" href="administrator-statistics-city">按城市及条件筛选</a></div>
					<div><a target="admins_frame" href="administrator-statistics-member">按客户名及条件筛选</a></div>
					<div><a target="admins_frame" href="administrator-statistics-orderdetail">订单明细</a></div>
					<div><a target="admins_frame" href="administrator-statistics-buyrank">会员成功交易总额排名</a></div>
					<div><a target="admins_frame" href="administrator-statistics-exportexcel">按月导出订单数据</a></div>
				</div>
			</div>
			<div class="admins_items">
				<div class="admins_items_title">推广活动</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-game-index">参与用户</a></div>	
					<div><a target="admins_frame" href="administrator-game-sendmail">发送邮件</a></div>	
					<div><a target="admins_frame" href="administrator-sell">传销分享的用户</a></div>
					<div><a target="admins_frame" href="administrator-sell-cash">提现</a></div>				
				</div>
			</div>
			<div class="admins_items">
				<div class="admins_items_title">传销活动</div>
				<div class="admins_items_menu">				
					<div><a target="admins_frame" href="administrator-mlm-cash">提现</a></div>	
					<div><a target="admins_frame" href="administrator-mlm-view">会员</a></div>				
				</div>
			</div>
			<div class="admins_items">
				<div class="admins_items_title">网站联盟</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-am-cash">提现</a></div>
					<div><a target="admins_frame" href="administrator-am-user">用户</a></div>	
				</div>
			</div>
		<?php if(checkedfnu($this->memberArray[0]['menuflag'],'14')):?>

			<div class="admins_items">
				<div class="admins_items_title">账户管理</div>
				<div class="admins_items_menu">
					<div><a target="admins_frame" href="administrator-account-index">紫城账户</a></div>
					<div><a target="admins_frame" href="administrator-account-item">财务信息</a></div>
				</div>
			</div>
		<?php endif;?>
		</div>
		<div class="admins_right">


			<iframe id="admins_frame" name="admins_frame" frameborder="0" scrolling="no"></iframe>


		</div>


		<div class="clear"></div>


	</div>


</div>


<?if($this->iframeUrl!=''):?>


	<script>


	$('#admins_frame').attr('src','<?=$this->iframeUrl?>');


	</script>


<?else:?>


	<script>


	$('#admins_frame').attr('src','administrator-summary-index');


	</script>


<?endif;?>